package com.bort.system.service;

import com.bort.system.info.CheckOutResult;
import com.bort.system.info.DeskInfo;
import com.bort.system.info.LoginResult;
import com.bort.system.model.Cart;
import com.bort.system.model.Category;
import com.bort.system.model.Goods;
import com.bort.system.model.TGameLog;
import com.bort.system.utils.Result;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

public interface ClientService {

    LoginResult login(String nameStr, String pdwStr);

    List<Goods> loadGoodsByCategoryId(Integer id);

    Result<List<Cart>> putInCart(Goods indexGoods, String orderNo, int num, Integer id, String playerName);

    Result sale(Goods indexGoods, String orderNo, int num);

    List<DeskInfo> getAllDesk();

    DeskInfo getDeskById(Integer id);

    Result<List<Category>> loadAllCategories(HashMap<Object, Object> objectObjectHashMap);

    TGameLog openDesk(DeskInfo data, Integer hValue, Integer mValue, String playerName);

    CheckOutResult checkOut(DeskInfo data,Date endTime);

    Result removeCart(Cart cart);

    TGameLog addOvertime(DeskInfo data, Integer value, Integer mValue);

    boolean closeDesk(DeskInfo data, Date closedTime, BigDecimal amount, BigDecimal pay);
}
